<template>
	<view class="index-box" :style="'padding-top:'+(barHeight)+'px'">
		<NavBar>
			<template v-slot:center>
				<view class="nav_center">
					<view class="navActive">勤业装备数据监控中心</view>
				</view>
			</template>
		</NavBar>
		<view class="index-content">
			<ProjectStatus>></ProjectStatus>
			<SaleAmount></SaleAmount>
			<ProcureContract></ProcureContract>
			<Reminder></Reminder>
		</view>
	</view>
</template>

<script>
	import NavBar from '../../components/NavBar.vue'
	import ProjectStatus from './components/ProjectStatus.vue'
	import SaleAmount from './components/SaleAmount.vue'
	import ProcureContract from './components/ProcureContract.vue'
	import Reminder from './components/Reminder.vue';
	export default {
		components: {
			NavBar,
			ProjectStatus,
			SaleAmount,
			ProcureContract,
			Reminder
		},
		data() {
			return {
				barHeight: 0, // 手机导航栏高度
			}
		},
		onInit() {
			const token = uni.getStorageSync('Token')
			if(!token){
				uni.reLaunch({
					url:"/pages/user/Login"
				})
			}
		},
		created() {
			this.barHeight = uni.getSystemInfoSync().statusBarHeight + 45;
		},
		methods: {

		}
	}
</script>

<style>
	@import '../../static/css/Index.css';
</style>